Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Canvas is not Supported ..
var can = document.getElementById('canvas'); var ctx = can.getContext('2d'); ctx.save(); function fill() { ctx.clearRect(0, 0, 800, 400); var x = 0 , y= 0; for (var i = 0; i < 10; i++) { for (var j = 0; j < 10; j++) { ctx.save(); ctx.beginPath(); ctx.fillStyle = 'rgb(' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ')'; ctx.globalAlpha = Math.random(); ctx.arc(10 + j * 79 , 10 + i * 39 , Math.random() * 25, 0, Math.PI*2, true); x+=6; y+=4; ctx.fill(); ctx.restore(); } } } var loop = setInterval(fill, 300);setTimeout(function () { clearInterval(loop); setInterval(Write, 200); }, 3500); var i = 1; function Write() { ctx.save(); var arr = ['H','A','P','P','Y',' ','B','I','R','T','H',' ','D','A','Y'] fill(); ctx.restore(); ctx.fillStyle = 'rgb(' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ')'; ctx.strokeStyle = 'rgb(' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ')'; ctx.font = "58pt Montserrat bold"; ctx.fillText(arr.slice(0, i % 16).join(""), 50, 150); ctx.strokeText(arr.slice(0, i % 16).join(""), 50, 150); i++; ctx.save(); }